package o;

import android.app.Activity;
import com.huawei.appmarket.R;
import com.huawei.appmarket.framework.startevents.protocol.ServiceZoneSwitchActivityProtocol;
import com.huawei.appmarket.framework.startevents.protocol.ServiceZoneSwitchActivityProtocol.Request;

public class dgn implements eur {
    public static void ˏ() {
        eut.ˏ().ˎ("ServiceNotSupportObserver", new dgn());
    }

    public static void ॱ() {
        eut.ˏ().ˊ("ServiceNotSupportObserver");
    }

    public void ˋ(Activity activity) {
        if (activity != null) {
            ˋ(activity, dgm.ˎ(activity));
            activity.finish();
        }
    }

    private void ˋ(Activity activity, int i) {
        String string;
        String str = null;
        if (i == 17) {
            string = activity.getString(R.string.kidschannel_not_support);
            str = activity.getString(R.string.kidschannel_app_name);
        } else if (i == 18) {
            string = activity.getString(R.string.educhannel_not_support);
            str = activity.getString(R.string.educhannel_app_name);
        } else {
            string = null;
        }
        cjo serviceZoneSwitchActivityProtocol = new ServiceZoneSwitchActivityProtocol();
        serviceZoneSwitchActivityProtocol.ॱ(new Request());
        serviceZoneSwitchActivityProtocol.ॱ().ˋ(string);
        serviceZoneSwitchActivityProtocol.ॱ().ˊ(str);
        serviceZoneSwitchActivityProtocol.ॱ().ˏ(i);
        cjk.ˎ().ˋ(activity, new cjm("servicezoneswitch.activity", serviceZoneSwitchActivityProtocol));
        activity.finish();
    }
}
